package com.work.washer.aa;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName order_comment
 */
@TableName(value ="order_comment")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderComment implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @JsonProperty("order")
    @JsonAlias("order_id")
    private Integer orderId;

    /**
     * 
     */
    @JsonProperty("userId")
    @JsonAlias("user_id")
    private Integer userId;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    @JsonProperty("create_time")
    private Date createTime;

    /**
     * 
     */
    @JsonProperty("goods_id")
//    @JsonAlias("goods_id")
    private String goodsId;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}